#ifndef GLOBAL_H
#define GLOBAL_H

#include <QObject>
#include <QString>


enum UploadStatus
{
    UploadNewStatus = 0,
    UploadInProgressStatus = 1,
    UploadDoneStatus = 2,
    UploadErrorStatus = 3,
    UploadAbortedStatus = 4
};

enum DownloadStatus
{
    DownloadNewStatus = 0,
    DownloadInProgressStatus = 1,
    DownloadDoneStatus = 2,
    DownloadErrorStatus = 3,
    DownloadAbortedStatus = 4,
    DownloadPausedStatus = 5,
    DownloadWaitStatus = 6
};

QString bytesToSize(qint64 size);
QString statusToString(UploadStatus status);
QString statusToString(DownloadStatus status);

#endif // GLOBAL_H
